package weaver.workflow.webservices;

public class ArrayOfWorkflowRequestInfo  {
	private WorkflowRequestInfo[] workflowRequestInfo;

	public ArrayOfWorkflowRequestInfo() {
	}

	public WorkflowRequestInfo[] getWorkflowRequestInfo() {
		return this.workflowRequestInfo;
	}

	public void setWorkflowRequestInfo(WorkflowRequestInfo[] workflowRequestInfo) {
		this.workflowRequestInfo = workflowRequestInfo;
	}

	public WorkflowRequestInfo getWorkflowRequestInfo(int i) {
		return this.workflowRequestInfo[i];
	}

	public void setWorkflowRequestInfo(int i, WorkflowRequestInfo value) {
		this.workflowRequestInfo[i] = value;
	}

	private Object __equalsCalc = null;
	public synchronized boolean equals(Object obj) {
		if (!(obj instanceof ArrayOfWorkflowRequestInfo)) return false;
		ArrayOfWorkflowRequestInfo other = (ArrayOfWorkflowRequestInfo) obj;
		if (obj == null) return false;
		if (this == obj) return true;
		if (__equalsCalc != null) {
			return (__equalsCalc == obj);
		}
		__equalsCalc = obj;
		boolean _equals;
		_equals = true && 
			((this.workflowRequestInfo==null && other.getWorkflowRequestInfo()==null) || 
			 (this.workflowRequestInfo!=null &&
			  java.util.Arrays.equals(this.workflowRequestInfo, other.getWorkflowRequestInfo())));
		__equalsCalc = null;
		return _equals;
	}

	private boolean __hashCodeCalc = false;
	public synchronized int hashCode() {
		if (__hashCodeCalc) {
			return 0;
		}
		__hashCodeCalc = true;
		int _hashCode = 1;
		if (getWorkflowRequestInfo() != null) {
			for (int i=0;
				i<java.lang.reflect.Array.getLength(getWorkflowRequestInfo());
				i++) {
				Object obj = java.lang.reflect.Array.get(getWorkflowRequestInfo(), i);
				if (obj != null &&
					!obj.getClass().isArray()) {
					_hashCode += obj.hashCode();
				}
			}
		}
		__hashCodeCalc = false;
		return _hashCode;
	}

}
